<?php $this->context->layout = 'fullout'; ?>
    <div style="display: flex">
        <?=$this->params['leftHtml']?>
        <div  style="width: 89.7%">
            <div class="ui-layout-center">
                <div class="container-div">
                    <div class="row">
                        <div class="col-sm-12 search-collapse">
                            <form id="role-form">
                                <div class="select-list">
                                    <ul>
                                        <li><?= \common\widgets\FormInput::widget(['name' => 'select|状态', 'extend' => ['name' => 'where[status]', 'value' => '', 'place' => '所有','data'=>$this->params['status11']]]) ?></li>
                                        <li>
                                            <?= $this->render('/iframe', ['name' => 'searchbtn|搜索']) ?>
                                            <?= $this->render('/iframe', ['name' => 'resetbtn|重置']) ?>
                                        </li>
                                    </ul>
                                </div>
                            </form>
                        </div>
                        <div class="col-sm-12 select-table table-striped">
                            <table id="bootstrap-table"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


<?php $this->beginBlock('script'); ?>
    <script>
        var status111 = eval('<?=json_encode($this->params['status11'])?>')
        getUserList();
        function getUserList() {
            bootUrl.url = "<?=\yii\helpers\Url::toRoute('log')?>"
            var options = {
                modalName: "VIP购卡记录",
                sortName:'create_time',
                sortOrder: "desc",
                columns: [
                    {field: 'id', title: 'ID', align: 'center', sortable: true},
                    { title: '订单号',field: 'orderid',align: 'center' },
                    { title: '微信用户',field: 'user',align: 'center' },
                    { title: '名称',field: 'title',align: 'center' },
                    { title: '天',field: 'days',align: 'center' },
                    { title: '金额',field: 'amount',align: 'center' },
                    {
                        title: '状态',
                        field: 'status',
                        align: 'center',
                        formatter: function (value, row, index) {
                            return $.view.statusShow(row, false,status111);
                        }
                    },
                    {field: 'create_time', title: '下单时间', align: 'center', sortable: true},
                ],
            };
            $.table.init(options);
        }
    </script>
<?php $this->endBlock(); ?>